package com.ylq.entity;

import lombok.Data;

import java.io.Serializable;

/**
 * @Author qiang
 * @Description 分页，页码
 * @Date 2020-04-26
 **/

public class PageVo implements Serializable{
    private int offSet=0;
    private int page=1;
    private int pageSize=5;
    public int getOffSet() {
        return (page-1)*pageSize;
    }
    public void setOffSet(int offSet) {
        this.offSet = offSet;
    }
    public int getPage() {
        return page;
    }
    public void setPage(int page) {
        this.page = page;
    }
    public int getPageSize() {
        return pageSize;
    }
    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }
}
